//
//  Screen.h
//  CherryPlumStore
//
//  Created by SDX on 2019/10/5.
//  Copyright © 2019 千凯. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**
 * x/xs/11pro 5.8 @3
 * xr/11 6.1 @2
 * xsmax/11promax 6.5 @3
 */

#define IS_X_XS_11PRO (SCREENWIDTH == [Screen sizeFor58Inch].width && SCREENHEIGHT == [Screen sizeFor58Inch].height)

#define IS_XR_11 (SCREENWIDTH == [Screen sizeFor61Inch].width && SCREENHEIGHT == [Screen sizeFor61Inch].height && [UIScreen mainScreen].scale == 2)

#define IS_XSMAX_11PROMAX (SCREENWIDTH == [Screen sizeFor65Inch].width && SCREENHEIGHT == [Screen sizeFor65Inch].height && [UIScreen mainScreen].scale == 3)

// 判断是不是异形屏
#define IS_SHAPED_SCREEN (IS_X_XS_11PRO||IS_XR_11||IS_XSMAX_11PROMAX)
// 刘海机状态栏 返回44高 其他的20 高
#define STATUSBARHEIGHT (IS_SHAPED_SCREEN ? 44 : 20)

@interface Screen : NSObject

+(CGSize)sizeFor58Inch;
+(CGSize)sizeFor65Inch;
+(CGSize)sizeFor61Inch;

@end

NS_ASSUME_NONNULL_END
